package com.dz.xjd.ui.model;


import com.dz.xjd.api.ApiManage;
import com.dz.xjd.ui.contract.ProfessionContract;
import rx.Observable;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

public class ProfessionModel implements ProfessionContract.Model{

    @Override
    public Observable<String> getProfessionData(String header, String params) {
        return ApiManage.getInstence().getApiService().getProfessionInfo(header,params)
                .subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());
    }
}
